package com.sg.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 周期与被评对象目标周期的关系表
 *
 * @author xxx
 */
@Data
@Accessors(chain = true)
@TableName("oms_execute_cycle_stage")  //3-3-07执行周期阶段表
public class OmsExecuteCycleStage implements Serializable {

  @Serial
    private static final long serialVersionUID = 1L;

  /**
   * 执行周期阶段ID
   */
  @TableId(value = "execute_cycle_stage_id", type = IdType.ASSIGN_UUID)
  @NotNull(message = "executeCycleStageId不能为空")
  private String executeCycleStageId;

  /**
   * 周期ID
   */
  @TableField(value = "cycle_id")
  @NotNull(message = "周期ID不能为空")
  @Schema(description = "周期ID")
  private String cycleId;

  /**
   * 填报开始时间
   */
  @TableField(value = "fill_start_time")
  @NotNull(message = "填报开始时间不能为空")
  @Schema(description = "填报开始时间")
  private Date fillStartTime;

  /**
   * 是否规划类型内子周期当前 TRUE:是 FALSE:否
   */
  @TableField(value = "is_same_scene_current_sub_cycle")
  @Schema(description = "是否规划类型内子周期当前")
  private String isSameSceneCurrentSubCycle;

  /**
   * 是否末级/子周期当前 TRUE:是 FALSE:否
   */
  @TableField(value = "is_current_cycle")
  @Schema(description = "是否末级/子周期当前")
  private String isCurrentCycle;

  /**
   * 填报结束时间
   */
  @TableField(value = "fill_endt_time")
  @NotNull(message = "填报结束时间不能为空")
  @Schema(description = "填报结束时间")
  private Date fillEndtTime;

  /**
   * 周期名称
   */
  @TableField(value = "cycle_standard_name")
  @NotNull(message = "周期名称不能为空")
  @Schema(description = "周期名称")
  private String cycleStandardName;

  /**
   * 上一执行周期阶段ID
   */
  @TableField(value = "last_execute_cycle_stage_id")
  @Schema(description = "上一执行周期阶段ID")
  private String lastExecuteCycleStageId;

  /**
   * 关联子周期执行阶段ID
   */
  @TableField(value = "relate_execute_cycle_stage_id")
  @NotNull(message = "关联子周期执行阶段ID不能为空")
  @Schema(description = "关联子周期执行阶段ID")
  private String relateExecuteCycleStageId;

  /**
   * 是否末级/子周期当前下一个 TRUE:是 FALSE:否
   */
  @TableField(value = "is_next_cycle")
  @Schema(description = "是否末级/子周期下一个")
  private String isNextCycle;

  /**
   * 评价开始时间
   */
  @TableField(value = "evaluate_start_time")
  @Schema(description = "评价开始时间")
  private Date evaluateStartTime;

  /**
   * 周期开始时间
   */
  @TableField(value = "cycle_start_time")
  @NotNull(message = "周期开始时间不能为空")
  @Schema(description = "周期开始时间")
  private Date cycleStartTime;

  /**
   * 是否开始子周期 TRUE:是 FALSE:否
   */
  @TableField(value = "is_start_cycle")
  @NotNull(message = "是否开始子周期不能为空")
  @Schema(description = "是否开始子周期")
  private String isStartCycle;

  /**
   * 评价结束时间
   */
  @TableField(value = "evaluate_endt_time")
  @Schema(description = "评价结束时间")
  private Date evaluateEndtTime;

  /**
   * 周期结束时间
   */
  @TableField(value = "cycle_end_time")
  @NotNull(message = "周期结束时间不能为空")
  @Schema(description = "周期结束时间")
  private Date cycleEndTime;

  /**
   * 是否截止子周期 TRUE:是 FALSE:否
   */
  @TableField(value = "is_end_cycle")
  @NotNull(message = "是否截止子周期不能为空")
  @Schema(description = "是否截止子周期")
  private String isEndCycle;

  /**
   * 周期类型标识
   */
  @TableField(value = "cycle_type_code")
  @NotNull(message = "周期类型标识不能为空")
  @Schema(description = "周期类型标识")
  private String cycleTypeCode;

  /**
   * 被评对象目标周期ID
   */
  @TableField(value = "eva_obj_target_cycle_id")
  @Schema(description = "被评对象目标周期ID")
  private String evaObjTargetCycleId;

  /**
   * 是否末级周期 TRUE:是 FALSE:否
   */
  @TableField(value = "is_last_cycle")
  @NotNull(message = "是否末级周期不能为空")
  @Schema(description = "是否末级周期")
  private String isLastCycle;

  /**
   * 是否父周期 TRUE:是 FALSE:否
   */
  @TableField(value = "is_father_cycle")
  @NotNull(message = "是否父周期不能为空")
  @Schema(description = "是否父周期")
  private String isFatherCycle;

  /**
   * 周期类型实例标识
   */
  @TableField(value = "cycle_type_instance_code")
  @Schema(description = "周期类型实例标识")
  private String cycleTypeInstanceCode;

  /**
   * 最近可循环周期类型编码
   */
  @TableField(value = "next_cycle_period")
  @Schema(description = "最近可循环周期类型编码")
  private String nextCyclePeriod;

  /**
   * 是否子周期 TRUE:是 FALSE:否
   */
  @TableField(value = "is_sub_cycle")
  @NotNull(message = "是否子周期不能为空")
  @Schema(description = "是否子周期")
  private String isSubCycle;

  /**
   * 是否中期 TRUE:是 FALSE:否
   */
  @TableField(value = "is_metaphase")
  @NotNull(message = "是否中期不能为空")
  @Schema(description = "是否中期")
  private String isMetaphase;

  /**
   * 1111周期类型配置标识
   */
  @TableField(value = "cycle_type_conf_code")
  @Schema(description = "1111周期类型配置标识")
  private String cycleTypeConfCode;

  /**
   * 是否过程周期阶段 TRUE:是 FALSE:否
   */
  @TableField(value = "is_process_cycle_stage")
  @NotNull(message = "是否过程周期阶段不能为空")
  @Schema(description = "是否过程周期阶段")
  private String isProcessCycleStage;

  /**
   * 是否自定义执行周期阶段 TRUE:是 FALSE:否
   */
  @TableField(value = "is_defined_execute_cycle_stage")
  @NotNull(message = "是否自定义执行周期阶段不能为空")
  @Schema(description = "是否自定义执行周期阶段")
  private String isDefinedExecuteCycleStage;

  /**
   * 关联目标内容类型编码 TARGET:目标 TARGET_CATEGORY:目标分类 OBJECTIVE:指标
   */
  @TableField(value = "relate_content_type_code")
  @NotNull(message = "关联目标内容类型编码不能为空")
  @Schema(description = "关联目标内容类型编码")
  private String relateContentTypeCode;

  /**
   * 关联目标内容ID
   */
  @TableField(value = "relate_content_id")
  @NotNull(message = "关联目标内容ID不能为空")
  @Schema(description = "关联目标内容ID")
  private String relateContentId;

  /**
   * 冗余目标ID
   */
  @TableField(value = "target_id")
  @NotNull(message = "冗余目标ID不能为空")
  @Schema(description = "冗余目标ID")
  private String targetId;

  /**
   * 评价模板ID
   */
  @TableField(value = "evaluation_template_id")
  @NotNull(message = "评价模板ID不能为空")
  @Schema(description = "评价模板ID")
  private String evaluationTemplateId;

  /**
   * 周期排序
   */
  @TableField(value = "order_number")
  @NotNull(message = "周期排序不能为空")
  @Schema(description = "周期排序")
  private Long orderNumber;

  /**
   * 评价模板创建时间
   */
  @TableField(value = "eva_temp_create_time")
  @NotNull(message = "评价模板创建时间不能为空")
  @Schema(description = "评价模板创建时间")
  private Date evaTempCreateTime;

  /**
   * 是否存档 TRUE:是 FALSE:否
   */
  @TableField(value = "is_archive")
  @NotNull(message = "是否存档不能为空")
  @Schema(description = "是否存档")
  private String isArchive;

  /**
   * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
   */
  @TableField(value = "subject_life_cycle")
  @NotNull(message = "主体生命周期不能为空")
  @Schema(description = "主体生命周期")
  private String subjectLifeCycle;

  /**
   * 操作人就职记录ID
   */
  @TableField(value = "operation_induction_id")
  @NotNull(message = "操作人就职记录ID不能为空")
  @Schema(description = "操作人就职记录ID")
  private String operationInductionId;

  /**
   * 创建人就职记录ID
   */
  @TableField(value = "create_induction_id")
  @NotNull(message = "创建人就职记录ID 不能为空")
  @Schema(description = "创建人就职记录ID ")
  private String createInductionId;

  /**
   * 发布人就职记录ID
   */
  @TableField(value = "release_induction_id")
  @Schema(description = "发布人就职记录ID")
  private String releaseInductionId;

  /**
   * 存档人就职记录ID
   */
  @TableField(value = "archive_induction_id")
  @Schema(description = "存档人就职记录ID")
  private String archiveInductionId;

  /**
   * 操作时间
   */
  @TableField(value = "operate_time")
  @NotNull(message = "操作时间不能为空")
  @Schema(description = "操作时间")
  private Date operateTime;

  /**
   * 创建时间
   */
  @TableField(value = "create_time")
  @NotNull(message = "创建时间不能为空")
  @Schema(description = "创建时间")
  private Date createTime;

  /**
   * 发布时间
   */
  @TableField(value = "release_time")
  @Schema(description = "发布时间")
  private Date releaseTime;

  /**
   * 存档时间
   */
  @TableField(value = "archive_time")
  @Schema(description = "存档时间")
  private Date archiveTime;

  /**
   * 是否作废 TRUE:是 FALSE:否
   */
  @TableField(value = "is_valid")
  @NotNull(message = "是否作废不能为空")
  @Schema(description = "是否作废")
  private String isValid;

  /**
   * 创建于空间ID
   */
  @TableField(value = "space_id")
  @NotNull(message = "创建于空间ID不能为空")
  @Schema(description = "创建于空间ID")
  private String spaceId;

  /**
   * 创建于联盟应用ID
   */
  @TableField(value = "app_id")
  @NotNull(message = "创建于联盟应用ID不能为空")
  @Schema(description = "创建于联盟应用ID")
  private String appId;
}
